package com.sample.demo;

import org.springframework.boot.SpringApplication;

//@SpringBootApplication
//@RestController
//@EnableEurekaClient
//@EnableDiscoveryClient
//@EnableHystrix
//@EnableHystrixDashboard
//@EnableCircuitBreaker
public class ServerHiApplication_hystrixdashboard {
	/**
	 * 访问地址 http://localhost:8762/actuator/hystrix.stream
	 * @param args
	 */
	public static void main(String[] args) {
		SpringApplication.run(ServerHiApplication_hystrixdashboard.class, args);
	}

	/*@Value("${server.port}")
	String port;

	@RequestMapping("/hi")
	@HystrixCommand(fallbackMethod = "hiError")
	public String home(@RequestParam(value = "name", defaultValue = "forezp") String name) {
		return "hi " + name + " ,i am from port:" + port;
	}


	public String hiError(String name) {
		return "hi,"+name+",sorry,error!";
	}*/
}
